import { DataSetProps } from 'choerodon-ui/pro/lib/data-set/DataSet';
import { FieldType } from 'choerodon-ui/pro/lib/data-set/enum';

const getTableProps = (): DataSetProps => ({
  name: 'table-pro-expand',
  autoQuery: false,
  fields: [
    {name: 'key', type: FieldType.number, label: "键"},
    {name: 'name', type: FieldType.string, label: "姓名"},
    {name: 'age', type: FieldType.number, label: "年龄"},
    {name: 'address', type: FieldType.string, label: "地址"},
    {name: 'description', type: FieldType.string, label: "描述"},

  ],
  data: [{
    key: 1,
    name: 'John Brown',
    age: 32,
    address: 'New York No. 1 Lake Park',
    description: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.',
  },
  {
    key: 2,
    name: 'Jim Green',
    age: 42,
    address: 'London No. 1 Lake Park',
    description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.',
  },
  {
    key: 3,
    name: 'Joe Black',
    age: 32,
    address: 'Sidney No. 1 Lake Park',
    description: 'My name is Joe Black, I am 32 years old, living in Sidney No. 1 Lake Park.',
  }],
});

export default getTableProps;